/**
* @author AlbertDarren
* @contact 2563491540@qq.com
*/
#include <cstdio>
#include <cstring>
using namespace std;

int main_1009_2()
{
    int word_cnt=0;
    char words[90][90];
    memset(words,0,sizeof words);
    while (scanf("%s",words[word_cnt])!=EOF)
    {
        ++word_cnt;
    }
    for (int i=word_cnt-1;i>0; --i)
    {
        printf("%s ",words[i]);
    }
    printf("%s",words[0]);
	return 0;
}
